import { getvideosdetail } from '@/api/video/video.js'
export const videoupdata = (id, video) => {
    return getvideosdetail(id).then((res) => {
        video = res.data.message[0]
        video.good === null ? video.good = '点赞' : video.good = video.good.split(',').length
        video.coin === null ? video.coin = '投币' : 1
        video.star === null ? video.star = '收藏' : video.star = video.star.split(',').length
        return video
    })
} 